home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / dpmigcc5.zip / RSX / SOURCE / TIMEDOS.H < prev    next >
C/C++ Source or Header  |  1994-05-27  |  851b  |  30 lines

  1. #include <time.h>
  2.  
  3. #ifndef _DATETIME_T_DEFINED
  4. #define _DATETIME_T_DEFINED
  5. struct dos_date {
  6.     unsigned short ddate_year;        /* 1980 - 2099 */
  7.     unsigned char  ddate_month;     /* 1 - 12 */
  8.     unsigned char  ddate_day;        /* 1 - 31 */
  9.     unsigned char  ddate_dayofweek; /* 0 = sonday */
  10. };
  11.  
  12. struct dos_time {
  13.     unsigned char dtime_hour;       /* 0 - 23 */
  14.     unsigned char dtime_minutes;   /* 0 - 59 */
  15.     unsigned char dtime_seconds;   /* 0 - 59 */
  16.     unsigned char dtime_hsec;       /* 0 - 99 */
  17. };
  18.  
  19. struct file_time {
  20.     unsigned short ft_date;
  21.     unsigned short ft_time;
  22. };
  23. #endif
  24.  
  25. unsigned long dos2gmt(struct dos_date *dd, struct dos_time *dt);
  26. void gmt2tm(unsigned long *t, struct tm *result);
  27. unsigned long filetime2gmt(struct file_time *ft);
  28. void gmt2filetime(unsigned long time, struct file_time *ft);
  29.  
  30.